// eslint-disable-next-line
import { UserLayout, BasicLayout, BlankLayout , RouteView } from '@/layouts'
import { bxAnaalyse , jsuanqi } from '@/core/icons'

// const RouteView = {
//   name: 'RouteView',
//   render: h => h('router-view')
// }

export const asyncRouterMap = [
  {
    path: '/',
    name: 'index',
    component: BasicLayout,
    meta: { title: 'menu.home' },
    // redirect: '/servicesWorkBench/workBench',
    children: [
      // 劳务端
      // 工作台
      {
        path: '/servicesWorkBench',
        name: 'servicesWorkBench',
        redirect: '/servicesWorkBench/workBench',
        component: RouteView,
        meta: { title: '工作台', keepAlive: true, icon: 'dashboard', userType: '2', permission: ['getUserTodo'] },
        children: [
          {
            path: '/servicesWorkBench/workBench',
            name: 'servicesWorkBenchIndex',
            component: () => import('@/views/Services/Workbench/workbench'),
            meta: { title: '工作台', keepAlive: false, userType: '2', }
          },
        ]
      },
      // 项目管理
      {
        path: '/servicesProjects',
        name: 'servicesProjects',
        redirect: '/servicesProjects/projectsList',
        component: RouteView,
        meta: { title: '项目管理', keepAlive: true, icon: jsuanqi,userType: '2', permission: ['getProjectList','createProject'] },
        children: [
          {
            path: '/servicesProjects/projectsList',
            name: 'servicesProjectsList',
            component: () => import('@/views/Services/Projects/projectsList'),
            meta: { title: '项目列表', keepAlive: false,userType: '2', permission: ['getProjectList','createProject'] }
          },
          {
            path: '/servicesProjects/editProject',
            name: 'servicesEditProject',
            hidden: true,
            component: () => import('@/views/Services/Projects/editProject'),
            meta: { title: '基本任务信息', keepAlive: false,userType: '2',}
          },
          {
            path: '/servicesProjects/editProject/success',
            name: 'servicesEditProjectSuccess',
            hidden: true,
            component: () => import('@/views/Services/Projects/editProject/Success'),
            meta: { title: '发布成功', keepAlive: false, userType: '2', }
          },
          {
            path: '/servicesProjects/projectDetail',
            name: 'servicesProjectDetail',
            hidden: true,
            component: () => import('@/views/Services/Projects/projectDetail'),
            meta: { title: '项目详情', keepAlive: false, userType: '2', }
          },
          {
            path: '/servicesProjects/userExcelUpload',
            name: 'servicesProjectUserExcelUpload',
            hidden: true,
            component: () => import('@/views/Services/Projects/userExcelUpload'),
            meta: { title: '邀请人员', keepAlive: false, userType: '2', }
          },
        ]
      },
      // 结算管理
      {
        path: '/servicesSettlement',
        name: 'servicesSettlement',
        redirect: '/servicesSettlement/settlement',
        component: RouteView,
        meta: { title: '结算管理', keepAlive: true, icon: 'profile',userType: '2', permission: ['uploadSettlementExcel','passSettlementOrder','settlementPay','authSettlementOrder'] },
        children: [
          {
            path: '/servicesSettlement/settlement',
            name: 'servicesSettlement',
            component: () => import('@/views/Services/Settlement/settlement'),
            meta: { title: '结算列表', keepAlive: false,userType: '2', permission: ['uploadSettlementExcel','passSettlementOrder','settlementPay','authSettlementOrder']}
          },
          {
            path: '/servicesSettlement/detail',
            name: 'servicesSettlementDetail',
            hidden: true,
            component: () => import('@/views/Services/Settlement/detail'),
            meta: { title: '结算详情', keepAlive: false, userType: '2',}
          },
          {
            path: '/servicesSettlement/excelUpload',
            name: 'servicesSettlementExcelUpload',
            hidden: true,
            component: () => import('@/views/Services/Settlement/excelUpload'),
            meta: { title: '结算申请', keepAlive: false, userType: '2',}
          },
          {
            path: '/servicesSettlement/detail/excelUpload',
            name: 'servicesSettlementDetailExcelUpload',
            hidden: true,
            component: () => import('@/views/Services/Settlement/detail/excelUpload'),
            meta: { title: '民工结算清单', keepAlive: false, userType: '2',}
          },
        ]
      },
      // 数据统计
      {
        path: '/servicesStatistics',
        name: 'servicesStatistics',
        redirect: '/servicesStatistics/statistics',
        component: RouteView,
        meta: { title: '财务管理', keepAlive: true, icon: 'transaction', userType: '2',permission: ['querySettlementStatistics','querySettlementDetailStatistics','payAwardOrder'] },
        children: [
          {
            path: '/servicesStatistics/statistics',
            name: 'servicesStatisticsStat',
            component: () => import('@/views/Services/Statistics/statistics'),
            meta: { title: '结算数据统计', keepAlive: false,userType: '2', permission: ['querySettlementStatistics'] }
          },
          {
            path: '/servicesStatistics/particulars/',
            name: 'servicesStatisticsParticulars',
            component: () => import('@/views/Services/Statistics/particulars'),
            meta: { title: '明细数据统计', keepAlive: false,userType: '2', permission: ['querySettlementDetailStatistics'] }
          },
          {
            path: '/servicesShare/statistics',
            name: 'servicesShareStatistics',
            component: () => import('@/views/Services/Shares/statistics'),
            meta: { title: '推广佣金管理', keepAlive: false,userType: '2', permission: ['payAwardOrder'] }
          },
        ]
      },
      // 账户管理
      {
        path: '/servicesAccount',
        name: 'servicesAccount',
        redirect: '/servicesAccount/accountList',
        component: RouteView,
        meta: { title: '账户管理', keepAlive: true, icon: 'account-book',userType: '2', permission: ['createLaborAccount','accountWithdraw','updateLaborAccount','getLaborWithdrawConfig','createSubAccount','updateSubAccount','getSubAccountList'] },
        children: [
          {
            path: '/servicesAccount/accountList',
            name: 'servicesAccountIndex',
            component: () => import('@/views/Services/Account/accountList'),
            meta: { title: '账户管理', keepAlive: false,userType: '2', permission: ['createLaborAccount','accountWithdraw','updateLaborAccount','getLaborWithdrawConfig'] }
          },
          {
            path: '/servicesAccount/accountDetail',
            name: 'servicesAccountDetail',
            hidden: true,
            component: () => import('@/views/Services/Account/detail'),
            meta: { title: '账户管理/详情', keepAlive: false, userType: '2', }
          },
          {
            path: '/servicesAccount/childAccount',
            name: 'servicesChildAccount',
            component: () => import('@/views/Services/Account/childAccount'),
            meta: { title: '子账户管理', keepAlive: false,userType: '2', permission: ['createSubAccount','accountWithdraw','updateSubAccount','getSubAccountList'] }
          },
        ]
      },
      // 发票管理
      {
        path: '/servicesInvoice',
        name: 'servicesInvoice',
        redirect: '/servicesInvoice/invoiceList',
        component: RouteView,
        meta: { title: '发票管理', keepAlive: true, icon: 'reconciliation',userType: '2', permission: ['adoptReceipt','makeReceipt'] },
        children: [
          {
            path: '/servicesInvoice/invoiceList',
            name: 'servicesInvoiceIndex',
            component: () => import('@/views/Services/Invoice/invoiceList'),
            meta: { title: '发票管理', keepAlive: false,userType: '2', permission: ['adoptReceipt','makeReceipt'] }
          },
          {
            path: '/servicesInvoice/invoiceDetail',
            name: 'servicesInvoiceDetail',
            hidden: true,
            component: () => import('@/views/Services/Invoice/detail'),
            meta: { title: '发票详情', keepAlive: false, userType: '2', }
          },
        ]
      },
      // 合同管理
      {
        path: '/servicesContract',
        name: 'servicesContract',
        redirect: '/servicesContract/contractList',
        component: RouteView,
        meta: { title: '合同管理', keepAlive: true, icon: 'audit',userType: '2', permission: ['createAwardContract','createLaborContract'] },
        children: [
          {
            path: '/servicesContract/contractList',
            name: 'servicesContractIndex',
            component: () => import('@/views/Services/Contract/contract'),
            meta: { title: '合同管理', keepAlive: false, userType: '2',permission: ['createAwardContract','createLaborContract'] }
          },
        ]
      },
      // 客户管理
      {
        path: '/servicesCustomer',
        name: 'servicesCustomer',
        redirect: '/servicesCustomer/customerInfo',
        component: RouteView,
        meta: { title: '客户管理', keepAlive: true, icon: 'contacts',userType: '2', permission: ['createCustomer','createCustomerBusiness'] },
        children: [
          {
            path: '/servicesCustomer/customerInfo',
            name: 'servicesCustomerInfo',
            component: () => import('@/views/Services/Customer/info'),
            meta: { title: '客户信息管理', keepAlive: false,userType: '2', permission: ['createCustomer'] }
          },
          {
            path: '/servicesCustomer/customerInfoDetail',
            name: 'servicesCustomerInfoDetail',
            hidden: true,
            component: () => import('@/views/Services/Customer/info/details'),
            meta: { title: '客户详情信息', keepAlive: false, userType: '2', }
          },
          {
            path: '/servicesCustomer/customerBusiness',
            name: 'servicesCustomerBusiness',
            component: () => import('@/views/Services/Customer/business'),
            meta: { title: '客户业务管理', keepAlive: false,userType: '2', permission: ['createCustomerBusiness'] }
          },
          {
            path: '/servicesCustomer/businessDetail',
            name: 'servicesCustomerBusinessDetail',
            hidden: true,
            component: () => import('@/views/Services/Customer/businessDetail'),
            meta: { title: '编辑业务', keepAlive: false, userType: '2', }
          },
        ]
      },
      // 代理管理
      {
        path: '/servicesAgency',
        name: 'servicesAgency',
        redirect: '/servicesAgency/agencyIndex',
        component: RouteView,
        meta: { title: '代理管理', keepAlive: true, icon: 'team',userType: '2', permission: ['createAgent'] },
        children: [
          {
            path: '/servicesAgency/agencyIndex',
            name: 'servicesAgencyIndex',
            component: () => import('@/views/Services/Agency/agency'),
            meta: { title: '代理管理', keepAlive: false, userType: '2',permission: ['createAgent']  }
          },
        ]
      },
      // 人员管理
      {
        path: '/servicesMember',
        name: 'servicesMember',
        redirect: '/servicesMember/memberIndex',
        component: RouteView,
        meta: { title: '人员管理', keepAlive: true, icon: 'solution',userType: '2', permission: ['getLaborSignUserList','getSelfEmployedList'] },
        children: [
          {
            path: '/servicesMember/memberIndex',
            name: 'servicesMemberIndex',
            component: () => import('@/views/Services/Member/member'),
            meta: { title: '人员管理', keepAlive: false,userType: '2', permission: ['getLaborSignUserList'] }
          },
          {
            path: '/servicesMember/memberDetail',
            name: 'servicesMemberDetail',
            hidden: true,
            component: () => import('@/views/Services/Member/details'),
            meta: { title: '人员详情', keepAlive: false, userType: '2', }
          },
          {
            path: '/servicesMember/selfEmployed',
            name: 'servicesSelfEmployed',
            component: () => import('@/views/Services/Member/SelfEmployed'),
            meta: { title: '个体户管理', keepAlive: false,userType: '2',}
          },
        ]
      },
      // 公司管理
      {
        path: '/servicesCompany',
        name: 'servicesCompany',
        redirect: '/servicesCompany/companyIndex',
        component: RouteView,
        meta: { title: '公司管理', keepAlive: true, icon: 'deployment-unit',userType: '2', permission: ['createCompany'] },
        children: [
          {
            path: '/servicesCompany/companyIndex',
            name: 'servicesCompanyIndex',
            component: () => import('@/views/Services/Company/company'),
            meta: { title: '公司管理', keepAlive: false,userType: '2', permission: ['createCompany'] }
          },
          {
            path: '/servicesCompany/companyDetail',
            name: 'servicesCompanyDetail',
            hidden: true,
            component: () => import('@/views/Services/Company/details'),
            meta: { title: '公司详情', keepAlive: false, userType: '2', }
          },
        ]
      },
      // 推广管理
      {
        path: '/servicesShare',
        name: 'servicesShare',
        redirect: '/servicesShare/shareConfig',
        component: RouteView,
        meta: { title: '推广管理', keepAlive: true, icon: 'share-alt',userType: '2', permission: ['saveAwardConfig','createBusinessManage'] },
        children: [
          {
            path: '/servicesShare/shareConfig',
            name: 'servicesShareConfig',
            component: () => import('@/views/Services/Shares/configs'),
            meta: { title: '推广设置管理', keepAlive: false,userType: '2', permission: ['saveAwardConfig','createBusinessManage'] }
          },
        ]
      },
      // 权限设置
      {
        path: '/servicesPower',
        name: 'servicesPower',
        redirect: '/servicesPower/power',
        component: RouteView,
        meta: { title: '权限管理', keepAlive: true, icon: 'deployment-unit', userType: '2',permission: ['createUserStaff'] },
        children: [
          {
            path: '/servicesPower/power',
            name: 'servicesPowerIndex',
            component: () => import('@/views/Services/Power'),
            meta: { title: '权限管理', keepAlive: false, userType: '2', permission: ['createUserStaff']}
          },
          {
            path: '/servicesPower/updatePower',
            name: 'servicesPowerUpdate',
            hidden: true,
            component: () => import('@/views/Services/Power/update'),
            meta: { title: '编辑权限', keepAlive: false, userType: '2', }
          },
        ]
      },

      // 甲方客户端
      // 项目管理
      {
        path: '/companysProjects',
        name: 'companysProjects',
        redirect: '/companysProjects/projectsList',
        component: RouteView,
        meta: { title: '项目管理', keepAlive: true, icon: jsuanqi,userType: '3', permission: ['createProject'] },
        children: [
          {
            path: '/companysProjects/projectsList',
            name: 'companysProjectsList',
            component: () => import('@/views/Companys/Projects/projects'),
            meta: { title: '项目列表', keepAlive: false,userType: '3', permission: ['createProject']  }
          },
          {
            path: '/companysProjects/editProject',
            name: 'companysEditProject',
            hidden: true,
            component: () => import('@/views/Companys/Projects/editProject'),
            meta: { title: '基本任务信息', keepAlive: false, userType: '3', }
          },
          {
            path: '/companysProjects/projectDetail',
            name: 'companysProjectsDetail',
            hidden: true,
            component: () => import('@/views/Companys/Projects/projectDetail'),
            meta: { title: '项目详情', keepAlive: false,userType: '3',  }
          },
          {
            path: '/servicesProjects/editProject/success',
            name: 'servicesEditProjectSuccess',
            hidden: true,
            component: () => import('@/views/Services/Projects/editProject/Success'),
            meta: { title: '发布成功', keepAlive: false, userType: '3', }
          },
          {
            path: '/servicesProjects/userExcelUpload',
            name: 'servicesProjectUserExcelUpload',
            hidden: true,
            component: () => import('@/views/Services/Projects/userExcelUpload'),
            meta: { title: '邀请人员', keepAlive: false, userType: '3', }
          },
        ]
      },
      // 结算管理
      {
        path: '/companysSettlement',
        name: 'companysSettlement',
        redirect: '/companysSettlement/settlement',
        component: RouteView,
        meta: { title: '结算管理', keepAlive: true, icon: 'profile',userType: '3', permission: ['uploadSettlementExcel','passSettlementOrder','settlementPay','authSettlementOrder'] },
        children: [
          {
            path: '/companysSettlement/settlement',
            name: 'companysSettlement',
            component: () => import('@/views/Companys/Settlement/settlement'),
            meta: { title: '结算列表', keepAlive: false,userType: '3', permission: ['uploadSettlementExcel','passSettlementOrder','settlementPay','authSettlementOrder']}
          },
          {
            path: '/companysSettlement/detail',
            name: 'companysSettlementDetail',
            hidden: true,
            component: () => import('@/views/Companys/Settlement/detail'),
            meta: { title: '结算详情', keepAlive: false,userType: '3', }
          },
          {
            path: '/companysSettlement/excelUpload',
            name: 'companysSettlementExcelUpload',
            hidden: true,
            component: () => import('@/views/Companys/Settlement/excelUpload'),
            meta: { title: '结算申请', keepAlive: false,userType: '3', }
          },
          {
            path: '/companysSettlement/detail/excelUpload',
            name: 'companysSettlementDetailExcelUpload',
            hidden: true,
            component: () => import('@/views/Companys/Settlement/detail/excelUpload'),
            meta: { title: '民工结算清单', keepAlive: false,userType: '3', }
          },
        ]
      },
      // 账户管理
      {
        path: '/companysAccount',
        name: 'companysAccount',
        redirect: '/companysAccount/accountList',
        component: RouteView,
        meta: { title: '账户管理', keepAlive: true, icon: 'account-book',userType: '3', permission: ['createLaborAccount','accountWithdraw','updateLaborAccount','getLaborWithdrawConfig','getSubAccountList'] },
        children: [
          {
            path: '/companysAccount/accountList',
            name: 'companysAccountIndex',
            component: () => import('@/views/Companys/Account/accountList'),
            meta: { title: '账户管理', keepAlive: false,userType: '3', permission: ['createLaborAccount','accountWithdraw','updateLaborAccount','getLaborWithdrawConfig'] }
          },
          {
            path: '/companysAccount/accountDetail',
            name: 'companysAccountDetail',
            hidden: true,
            component: () => import('@/views/Companys/Account/detail'),
            meta: { title: '账户管理/详情', keepAlive: false, userType: '3', }
          },
          // {
          //   path: '/companysAccount/childAccount',
          //   name: 'companysChildAccount',
          //   component: () => import('@/views/Services/Account/childAccount'),
          //   meta: { title: '子账户管理', keepAlive: false,userType: '3', permission: ['getSubAccountList'] }
          // },
        ]
      },
      // 财务管理
      {
        path: '/companysStatistics',
        name: 'companysStatistics',
        redirect: '/companysStatistics/statistics',
        component: RouteView,
        meta: { title: '财务管理', keepAlive: true, icon: 'transaction', userType: '3',permission: ['querySettlementStatistics','querySettlementDetailStatistics','payAwardOrder'] },
        children: [
          {
            path: '/companysStatistics/statistics',
            name: 'companysStatisticsStat',
            component: () => import('@/views/Companys/Statistics/statistics'),
            meta: { title: '结算数据统计', keepAlive: false, userType: '3', permission: ['querySettlementStatistics','querySettlementDetailStatistics','payAwardOrder']}
          },
          {
            path: '/companysStatistics/particulars/',
            name: 'companysStatisticsParticulars',
            component: () => import('@/views/Companys/Statistics/particulars'),
            meta: { title: '明细数据统计', keepAlive: false, userType: '3', }
          },
        ]
      },
      // 发票管理
      {
        path: '/companysInvoice',
        name: 'companysInvoice',
        redirect: '/companysInvoice/invoiceList',
        component: RouteView,
        meta: { title: '发票管理', keepAlive: true, icon: 'reconciliation', userType: '3', permission: ['makeReceipt'] },
        children: [
          {
            path: '/companysInvoice/invoiceList',
            name: 'companysInvoiceIndex',
            component: () => import('@/views/Companys/Invoice/invoiceList'),
            meta: { title: '发票管理', keepAlive: false, userType: '3', permission: ['makeReceipt'] }
          },
          {
            path: '/companysInvoice/invoiceApply',
            name: 'companysInvoiceApply',
            hidden: true,
            component: () => import('@/views/Companys/Invoice/apply'),
            meta: { title: '申请发票', keepAlive: true, userType: '3', }
          },
          {
            path: '/companysInvoice/invoiceConfigs',
            name: 'companysInvoiceConfigs',
            hidden: true,
            component: () => import('@/views/Companys/Invoice/configs'),
            meta: { title: '发票抬头管理', keepAlive: true, userType: '3', }
          },
          {
            path: '/companysInvoice/invoiceAddress',
            name: 'companysInvoiceAddress',
            hidden: true,
            component: () => import('@/views/Companys/Invoice/address'),
            meta: { title: '发票收件地址管理', keepAlive: true, userType: '3', }
          },
          {
            path: '/companysInvoice/invoiceDetail',
            name: 'companysInvoiceDetail',
            hidden: true,
            component: () => import('@/views/Companys/Invoice/detail'),
            meta: { title: '发票详情', keepAlive: false, userType: '3', }
          },
        ]
      },
      // 供应商
      {
        path: '/companysCompany',
        name: 'companysCompany',
        redirect: '/companysCompany/companyIndex',
        component: RouteView,
        meta: { title: '供应商管理', keepAlive: true, icon: 'deployment-unit',userType: '3', permission: ['getCustomerCompanys'] },
        children: [
          {
            path: '/companysCompany/companyIndex',
            name: 'companysCompanyIndex',
            component: () => import('@/views/Companys/Company/company'),
            meta: { title: '供应商管理', keepAlive: false, userType: '3',permission: ['getCustomerCompanys'] }
          },
          {
            path: '/companysCompany/companyDetail',
            name: 'companysCompanyDetail',
            hidden: true,
            component: () => import('@/views/Companys/Company/details'),
            meta: { title: '供应商详情', keepAlive: false, userType: '3', }
          },
        ]
      },
      // 权限设置
      {
        path: '/companysPower',
        name: 'companysPower',
        redirect: '/companysPower/power',
        component: RouteView,
        meta: { title: '权限管理', keepAlive: true, icon: 'deployment-unit',userType: '3',permission: ['createUserStaff'] },
        children: [
          {
            path: '/companysPower/power',
            name: 'companysPowerIndex',
            component: () => import('@/views/Services/Power'),
            meta: { title: '权限管理', keepAlive: false, userType: '3', permission: ['createUserStaff']}
          },
          {
            path: '/companysPower/updatePower',
            name: 'companysPowerUpdate',
            hidden: true,
            component: () => import('@/views/Services/Power/update'),
            meta: { title: '编辑权限', keepAlive: false, userType: '3', }
          },
        ]
      },

      // 基础设置
      {
        path: '/settins',
        name: 'settins',
        redirect: '/settins/resPhone',
        hidden: true,
        component: RouteView,
        meta: { title: '个人中心', keepAlive: true, icon: 'deployment-unit', },
        children: [
          {
            path: '/settins/resPhone',
            name: 'settinsResPhone',
            hidden: true,
            component: () => import('@/views/Settings/resPhone'),
            meta: { title: '修改手机号', keepAlive: false,  }
          },
          {
            path: '/settins/resPassword',
            name: 'settinsResPassword',
            hidden: true,
            component: () => import('@/views/Settings/resPassword'),
            meta: { title: '修改密码', keepAlive: false,  }
          },
        ]
      },

      // other
      /*
      {
        path: '/other',
        name: 'otherPage',
        component: PageView,
        meta: { title: '其他组件', icon: 'slack', permission: [ 'dashboard' ] },
        redirect: '/other/icon-selector',
        children: [
          {
            path: '/other/icon-selector',
            name: 'TestIconSelect',
            component: () => import('@/views/other/IconSelectorView'),
            meta: { title: 'IconSelector', icon: 'tool', keepAlive: true, permission: [ 'dashboard' ] }
          },
          {
            path: '/other/list',
            component: RouteView,
            meta: { title: '业务布局', icon: 'layout', permission: [ 'support' ] },
            redirect: '/other/list/tree-list',
            children: [
              {
                path: '/other/list/tree-list',
                name: 'TreeList',
                component: () => import('@/views/other/TreeList'),
                meta: { title: '树目录表格', keepAlive: true }
              },
              {
                path: '/other/list/edit-table',
                name: 'EditList',
                component: () => import('@/views/other/TableInnerEditList'),
                meta: { title: '内联编辑表格', keepAlive: true }
              },
              {
                path: '/other/list/user-list',
                name: 'UserList',
                component: () => import('@/views/other/UserList'),
                meta: { title: '用户列表', keepAlive: true }
              },
              {
                path: '/other/list/role-list',
                name: 'RoleList',
                component: () => import('@/views/other/RoleList'),
                meta: { title: '角色列表', keepAlive: true }
              },
              {
                path: '/other/list/system-role',
                name: 'SystemRole',
                component: () => import('@/views/role/RoleList'),
                meta: { title: '角色列表2', keepAlive: true }
              },
              {
                path: '/other/list/permission-list',
                name: 'PermissionList',
                component: () => import('@/views/other/PermissionList'),
                meta: { title: '权限列表', keepAlive: true }
              }
            ]
          }
        ]
      }
      */
    ]
  },
  {
    path: '*',
    redirect: '/404',
    hidden: true
  }
]

/**
 * 基础路由
 * @type { *[] }
 */
export const constantRouterMap = [
  {
    path: '/user',
    component: UserLayout,
    redirect: '/user/login',
    hidden: true,
    children: [
      {
        path: 'login',
        name: 'login',
        component: () => import(/* webpackChunkName: "user" */ '@/views/user/Login')
      },
      {
        path: 'phoneLogin',
        name: 'phoneLogin',
        component: () => import(/* webpackChunkName: "user" */ '@/views/user/PhoneLogin')
      },
      {
        path: 'register',
        name: 'register',
        component: () => import(/* webpackChunkName: "user" */ '@/views/user/Register')
      },
      {
        path: 'register-result',
        name: 'registerResult',
        component: () => import(/* webpackChunkName: "user" */ '@/views/user/RegisterResult')
      },
      {
        path: 'recover',
        name: 'recover',
        component: () => import(/* webpackChunkName: "user" */ '@/views/user/Recover')
      }
    ]
  },

  {
    path: '/404',
    component: () => import(/* webpackChunkName: "fail" */ '@/views/exception/404')
  }
]
